package com.cly.vo;

import com.cly.entity.Post;
import com.cly.enums.PostEducationEnum;
import com.cly.enums.PostGroupEnum;
import com.cly.enums.PostStatusEnum;
import com.cly.enums.PostTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serial;

/**
 * 岗位视图类
 *
 * @author by 春风能解释
 * <p>
 * 2024/11/13
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
@NoArgsConstructor
@Schema(name = "岗位视图对象", description = "岗位视图对象")
public class PostVo extends Post {
    /**
     * 序列化ID
     */
    @Serial
    private static final long serialVersionUID = 7890055860353674582L;
    /**
     * 岗位分类名称
     */
    @Schema(description = "岗位分类名称")
    private String postCategoryName;
    /**
     * 学历要求
     */
    @Schema(description = "学历要求")
    private PostEducationEnum educationName;
    /**
     * 岗位类型
     */
    @Schema(description = "岗位类型")
    private PostTypeEnum typeName;
    /**
     * 面向群体
     */
    @Schema(description = "面向群体")
    private PostGroupEnum groupName;
    /**
     * 岗位状态
     */
    @Schema(description = "岗位状态")
    private PostStatusEnum statusName;
}
